package common;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.MotionEvent;
import android.view.View;

import utils.MyLogUtils;

/**
 * Created by Administrator on 2017/2/21.
 */
@SuppressLint("ValidFragment")
public class BaseFragment extends Fragment {
    private BaseActivity activity;

    public BaseFragment() {

    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if(getActivity()!=null){
            this.activity = (BaseActivity) getActivity();
        }
    }

    public BaseActivity getMyActivity(){
        return this.activity;
    }

}
